package com.wetool.wechat.exception;


import com.wetool.common.model.ResultBase;
import lombok.Getter;

@Getter
public class WechatAccessException extends RuntimeException {

    private ResultBase resultBase;

    public WechatAccessException(ResultBase resultBase) {
        super(resultBase.getMessage());
        this.resultBase = resultBase;
    }

    public WechatAccessException(ResultBase resultBase, Throwable throwable) {
        super(throwable);
        this.resultBase = resultBase;
    }
}
